<!-- Main content -->
<div>
    <!-- Main content -->
    <section class="content" ng-controller="purchaseManageCtr" ng-init="init()">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <!-- /.box-header -->
                    <div class="box-body">
                        <div class="form-group col-sm-3">
                            <label>采购单号</label>
                            <input class="form-control"
                                   ng-model="queryParam.id">
                        </div>
                        <div class="form-group col-sm-3">
                            <label>状态</label>
                            <select ng-model="queryParam.status" class="form-control">
                                <option value="">全部</option>
                                <option value="已通过">已通过</option>
                                <option value="已拒绝">已拒绝</option>
                                <option value="未审核">未审核</option>
                            </select>
                        </div>
                        <div class="form-group col-sm-12">
                            <button type="submit" class="btn btn-primary" ng-click="queryPurchaseOrder()" ng-if="user.permitMap.ORDER_QUERY">查询</button>
                            <button type="submit" class="btn btn-primary" ng-click="openAddModal() " ng-if="user.permitMap.ORDER_CREATE">创建</button>
                            <button type="submit" class="btn btn-primary" ng-click="openEditModal()" ng-if="user.permitMap.ORDER_EDIT">编辑</button>
                            <button type="submit" class="btn btn-primary" ng-click="deleteOrder()" ng-if="user.permitMap.ORDER_DELETE">删除</button>
                            <button type="submit" class="btn btn-primary" ng-click="openCheckModal()" ng-if="user.permitMap.ORDER_CHECK">审核</button>
                            <button type="submit" class="btn btn-primary" ng-click="openDetailModal()">详情</button>
                            <button type="submit" class="btn btn-primary" ng-click="export()">导出Excel</button>
                        </div>
                        <div class="form-group col-sm-12">
                            <div id="orderGird" ui-grid="orderGird" ui-grid-pagination ui-grid-auto-resize
                                 ui-grid-empty-base-layer ui-grid-resize-columns ui-grid-selection ui-grid-exporter></div>
                        </div>
                        <!--<table id="businessPurchasePoints" class="table table-bordered table-striped"></table>-->
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
</div>
